package org.example.gateway.pojo.dto;

import org.example.gateway.enums.OperationTypeEnum;

import java.util.List;

public class RouteRuleOperationDto {
    /**
     * {@link org.example.gateway.enums.OperationTypeEnum}
     */
    private String operationType;

    private List<AppRuleDto> ruleList;

    public RouteRuleOperationDto() {
    }

    public RouteRuleOperationDto(OperationTypeEnum operationTypeEnum, List<AppRuleDto> ruleList) {
        this.operationType = operationTypeEnum.getCode();
        this.ruleList = ruleList;
    }

    public String getOperationType() {
        return operationType;
    }

    public void setOperationType(String operationType) {
        this.operationType = operationType;
    }

    public List<AppRuleDto> getRuleList() {
        return ruleList;
    }

    public void setRuleList(List<AppRuleDto> ruleList) {
        this.ruleList = ruleList;
    }
}
